import { Button } from "antd";
import MainChild from "./MainChild";

export default function Main({ handleCount, count }: { handleCount: () => void, count: number }) {
	return (
		<div className="main-component">
			<span>子组件Main</span>
			<span>支持人数：{count}</span>
			<Button onClick={handleCount}>点我调用父组件方法支持</Button>
			<MainChild />
		</div>
	);
}
